import {createRouter,createWebHashHistory, createWebHistory} from 'vue-router'
import Home from "./components/Home.vue"
import Page2 from "./components/Page2.vue"
import Page3 from "./components/Page3.vue"

const routes=[
    {   
        path: "/",  
        component: Home 
    }, {   
        path: "/Page2",  
        component: Page2 
    }, {   
        path: "/Page3",  
        component: Page3 
    }
]

const router = createRouter({
    // 路由模式
    // history:createWebHashHistory(),
    history:createWebHistory(),
    routes
});

export default router